package top.fzqblog.kotlinapp.http


import io.reactivex.Observable
import retrofit2.http.*
import top.fzqblog.kotlinapp.model.HouseResult
import top.fzqblog.kotlinapp.model.HouseDetail
import top.fzqblog.kotlinapp.model.HouseImg

/**
 * Created by 抽离 on 2017/11/18 0018.
 */
interface HouseService {


    @POST("/house/listHouseByCondition")
    fun getHouseByCondition(@QueryMap map: Map<String, String>): Observable<HouseResult>

    @POST("/house/getHouseDetailById")
    fun getHouseById(@Query("houseId")houseId: Long): Observable<HouseDetail>

    @POST("/houseImg/getHouseImgListByHouseId")
    fun getHouseImgs(@Query("houseId")houseId: Long): Observable<HouseImg>
}